package org.douxiaoban.client.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import org.douxiaoban.client.R;

/**
 * Created by IntelliJ IDEA.
 * User: huangzhongkun
 * Date: 11-6-19
 * Time: 下午4:14
 */
public class WelcomeActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);


        //Display full screen
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        //Cancel default title
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.main);

        Button button = (Button)this.findViewById(R.id.auth_btn);

        button.setOnClickListener(new View.OnClickListener(){
            public void onClick(View view) {

                Intent intent = new Intent();

                intent.setClass(WelcomeActivity.this,NormalLoginActivity.class);
                intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                startActivity(intent);
                finish();

             }
        });


    }
}